Current Location: Home> Function Categories> timezone_identifiers_list

timezone_identifiers_list

Alias ​​for DateTimeZone::listIdentifiers - Returns an index array containing all time zone identifiers
Name:timezone_identifiers_list
Category:Date and time
Programming Language:php
One-line Description:Returns an index array with all time zone identifiers.

Definition and usage

timezone_identifiers_list() returns an index array containing all time zone identifiers.

Example

Output all time zones in Asia:

 <?php
print_r ( timezone_identifiers_list ( 16 ) ) ;
?>

Try it yourself

grammar

 timezone_identifiers_list ( what , country ) ;
parameter describe
What

Optional. Specify the DateTimeZone class constant

  • 1 = AFRICA
  • 2 = AMERICA
  • 4 = ANTARCTICA
  • 8 = ARCTIC
  • 16 = ASIA
  • 32 = ATLANTIC
  • 64 = AUSTRALIA
  • 128 = EUROPE
  • 256 = INDIAN
  • 512 = PACIFIC
  • 1024 = UTC
  • 2047 = ALL
  • 4095 = ALL_WITH_BC
  • 4096 = PER_COUNTRY
country Optional. Specifies two letters of ISO 3166-1 compatible country code.
Similar Functions